﻿
using SqlSugar;
using static DataModels.Enums.GeneralEnum;

namespace DataModels.Entities.Community
{
    [SugarTable]
    public class PropertyAnnouncement
    {
        [SugarColumn(IsPrimaryKey = true)]
        public Guid UUID { get; set; } = Guid.NewGuid();

        /// <summary>
        /// 项目UUID
        /// </summary>
        public Guid ProjectUUID { get; set; }


        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 首图
        /// </summary>
        public string Image { get; set; }

        /// <summary>
        /// 浏览量
        /// </summary>
        public int PageView { get; set; }

        public Guid CreateUserUUID { get; set; }
        public string CreateUserName { get; set; }

        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 评论状态
        /// </summary>
        public Status Status { get; set; } = Status.Enable;

        /// <summary>
        /// 是否置顶 0或1
        /// </summary>
        public int IsTop { get; set; }
    }
}
